feat(cli): log bindings.json and resource overwrites at INFO#1681
Merged
Conversation
Surface the bindings.json content sent to Studio (debug) and the raw resource overwrites loaded from uipath.json (run) and received from the Studio API (debug). Makes it possible to diagnose binding/overwrite mismatches from logs alone without re-running with extra instrumentation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR increases CLI observability around resource binding/overwrite resolution by logging the raw bindings.json, the raw Studio binding-overwrites response, and the raw resourceOverwrites section from uipath.json at INFO level to aid production debugging.
Changes:
- Log
resourceOverwritesread fromuipath.jsonat INFO duringuipath runstartup. - Log
bindings.jsoncontents and the Studio APIbinding-overwritesresponse at INFO duringuipath debug. - Bump
uipathpackage version to2.10.71and updateuv.lock.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/uipath/src/uipath/_cli/_utils/_studio_project.py | Adds INFO logging for bindings.json content and Studio overwrite response prior to parsing. |
| packages/uipath/src/uipath/_cli/_utils/_common.py | Adds INFO logging of file-based resourceOverwrites and promotes missing-file log from DEBUG to INFO. |
| packages/uipath/pyproject.toml | Version bump to 2.10.71. |
| packages/uipath/uv.lock | Lock metadata/version update corresponding to the release bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| logger.info( | ||
| "Resource bindings (%s):\n%s", | ||
| UiPathConfig.bindings_file_path, | ||
| file_content.decode(), |
radu-mocanu
approved these changes
May 25, 2026
radu-mocanu
requested changes
May 25, 2026
radu-mocanu
left a comment
Collaborator
There was a problem hiding this comment.
please add some tests
Add unit tests for the diagnostic logging added in cf928e4: read_resource_overwrites_from_file (raw overwrites, missing config, malformed JSON, unrecognized keys) and StudioClient.get_resource_overwrites (missing bindings file, bindings + received payload logging, parsing, tenant id header forwarding). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When CLI tests run first in the session, `setup_logging` sets `propagate = False` on the `uipath` logger (and intermediate loggers in the chain end up the same way via other test setups), so pytest's `caplog` — whose handler lives on root — silently captured nothing. Attach `caplog.handler` directly to the specific module loggers under test for the duration of each test, and restore prior state on teardown. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
radu-mocanu
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
resourceOverwritesdict fromuipath.jsonat INFO whenuipath runstarts (_common.py:read_resource_overwrites_from_file).bindings.jsoncontent + raw Studiobinding-overwritesresponse at INFO duringuipath debug(_studio_project.py:get_resource_overwrites).logging.getLogger("uipath")channel.Motivation: diagnosing binding/overwrite mismatches from production telemetry currently requires re-running with extra instrumentation. With these logs, you can correlate what the agent actually saw against what Studio sent / what the bundled package declared.
Test plan
uipath run <agent> '{}'against a project with a populateduipath.json— verify INFO line "Resource overwrites read from …" shows the full JSON dict.uipath run <agent> '{}'with empty/missing overwrites — verify the empty/{}log fires, and the "config file not found" branch logs at INFO.uipath debugagainst a Studio project — verify the two INFO blocks (bindings content + Studio response) fire before the run.uipath debugwithoutUIPATH_PROJECT_ID— verify the existing "executing without resource overwrites" message still fires and nothing else changed.🤖 Generated with Claude Code